import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.TreeMap;


public class Test {

	public static void main(String args[])
	{
		ArrayList<Character> list = new ArrayList<Character>();
		
		list.add(new Character('D'));
		list.add(new Character('F'));
		list.add(new Character('G'));
		list.add(new Character('ý'));
		list.add(new Character('ŋ'));
		
		sortCharacterList(list);
	}
	
	public static ArrayList<Character> sortCharacterList(ArrayList<Character> charArrayList)
	{
		ArrayList<Character> sortedCharArraylist = new ArrayList<Character>();
		TreeMap<Character, Character> map = new TreeMap<Character, Character>();      

	    for(Character oneChar : charArrayList) {
	        map.put(oneChar, oneChar);
	    }

	    Collection<Character> col = map.values();
	    Iterator<Character> it = col.iterator();
	    while(it.hasNext()) {
	    	Character oneChar = it.next();
	    	System.out.println("char="+oneChar);
	    	sortedCharArraylist.add(oneChar);
	    }
		return sortedCharArraylist;
	}
}
